﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" 
    xmlns:mwab="clr-namespace:Microsoft.WebAnalytics.Behaviors;assembly=Microsoft.WebAnalytics.Behaviors" 
    xmlns:mwadz="clr-namespace:Microsoft.WebAnalytics.Media;assembly=Microsoft.WebAnalytics.DeepZoom" 
    xmlns:local="clr-namespace:DemoDeepZoom" x:Class="DemoDeepZoom.MainPage"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

	<i:Interaction.Behaviors>
		<mwab:ConsoleAnalytics/>
	</i:Interaction.Behaviors>

    <Grid x:Name="LayoutRoot" Background="White">
    	<MultiScaleImage x:Name="DeepZoom" Source="images/dzc_output.xml">
    		<i:Interaction.Behaviors>
    			<mwadz:TrackMultiScaleImage Metadata="images/Metadata.xml">
    				<mwadz:MultiScaleImageLocation Name="LighthouseWindow" ViewportWidth="0.0708"
                                                   CenterX="0.585" CenterY="0.640" CenterTolerance="0.01"/>
    			</mwadz:TrackMultiScaleImage>
    			<local:DeepZoomInitializer/>
    		</i:Interaction.Behaviors>
    	</MultiScaleImage>

    </Grid>
</UserControl>
